<tr>    
    <td><?php            
    echo  CHtml::activeTextField($model, '[' . $index . ']beginning_year');
    ?></td>			    
    <td ><?php            
    echo  CHtml::activeTextField($model, '[' . $index . ']ending_year');
    ?></td>    
    <td ><?php            
    echo  CHtml::activeTextField($model, '[' . $index . ']academy_level');
    ?></td>    
    <td ><?php            
    echo  CHtml::activeTextField($model, '[' . $index . ']school_name');
    ?></td>    
    <td class="hideonview"><?php
    echo CHtml::link('X', '#', array('onclick' => 'deleteProcess(this, ' . $index . '); return false;', 'class' => 'hiddenOnView'));
    ?></td>
</tr>

<?php
Yii::app()->clientScript->registerScript('deleteProcess', "
function deleteProcess(elm, index)
{
    element=$(elm).parent().parent();
    /* animate div */    
    $(element).remove();    
}", CClientScript::POS_END);
